package com.yuanfeng.commoms.vo.goods;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品详情信息
 *
 * @author Poi
 *
 */
@Data
public class GoodsDetailsListVO {
	private Integer commonId;
	private Integer goodsId;
	/**
	 * 商品图片
	 */
	private String goodsImage;
	private String goodsName;//商品名称
	private Integer goodsStock;
	/**
	 * 商品状态 0下架，1正常，10违规（禁售）
	 */
	private Integer commonState;
	private BigDecimal goodsPrice;//商品价格
	private BigDecimal shippingFee; //商品邮费
	private BigDecimal orderShippingFee; //订单邮费
	private BigDecimal orderGoodsPaymentAmount; //商品实付金额
	private BigDecimal orderPaymentAmount; //订单实付金额
	private Integer orderGoodsNum;//商品数量
	private Integer orderGoodsReturnnum;//退货数量
	private BigDecimal orderGoodsAmount;//商品金额 （实付金额）= order_goods_payment_amount* order_goods_num
	private String orderSpecChineseValue;//规格值
	private Integer orderGoodsEvaluationStatus;//评价状态
	private Integer needIntegral;
	private Integer goodsIntegral;
	private String orderShippingCode;
	private Integer goodsType;
	private Integer promotionId;
	/**
	 * 商品id
	 */
	private String shopId;
	private String orderId;
	private String shopName;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderCreateTime;

	/**
	 * 是否上架1:上架
	 */
	private Integer goodsIsShelves;


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date orderShippingTime;//发货时间
	private Integer orderStatus;
	private Integer deliveryTime;
	private Integer orderGoodsIdDeliver;//是否发货 0 未发货  1 发货
	private Integer returnState;//售后状态
	private Integer orderRefundStatus;//售后状态
	private Integer orderReturnStatus;//售后状态

	/**
	 * 1：会员商品，2：阶梯价商品
	 */
	private Integer hyOrStep;

	/**
	 * 含税单价
	 */
	private BigDecimal goodsTaxPrice;

	/**
	 * 未税单价
	 */
	private BigDecimal goodsWeiPrice;

	/**
	 * 规格
	 */
	private String goodsSpec;

	/**
	 * 单位
	 */
	private String dw;

	/**
	 * 税率
	 */
	private Double taxRate;


	/**
	 * 订货编码
	 */
	private String goodsCode;


	/**
	 * 是否询价
	 */
	private Integer isEnquiry;



}
